Action buttons are objects you create in your sketch that you can press to perform a variety of actions: hiding or showing objects, moving or animating objects, linking to a different page in your document or to a web site, scrolling the sketch window to a particular position, playing a sound, or making a presentation. Use action buttons to conveniently repeat frequent actions or to help explain the mathematics of your sketch to others.
Button Type and Properties |
Command |
Prerequisites |
Action |
One or more objects |
Hide or show the selected objects |
||
One or more geometric objects or parameters |
Animate the selected objects |
||
One or more pairs of points or values. The first object of each pair must be free to move or vary. (In other words, the first object can be a point that's free to move or a parameter.) |
Move or vary the first object of each pair toward the second object of the pair |
||
One or more action buttons |
Present the action buttons simultaneously or sequentially |
||
One or two functions |
Make a sound defined by the function(s) |
||
None |
Link to another page, another sketch, or a location on the Internet |
||
One point |
Scroll the window based on the location of the point |
To create an action button, choose a command from the Edit | Action Buttons submenu. Once you’ve created an action button, you can do several things with it.
|
You can create a keyboard shortcut for an action button, so that it performs its action when you press a key on the keyboard. In the button’s label, insert an ampersand symbol (&) before the letter that you want to use as the shortcut. That letter will then be underlined to indicate the keyboard shortcut. For example if you label an animation button Animate &Point, the P will be underlined, so that the button appears as Animate Point. On the keyboard, P will be the shortcut key. To perform the button’s action, press the shortcut key on your keyboard. To stop the action, press the shortcut key a second time. The keyboard shortcut works only when the action button is visible. If several action buttons have the same keyboard shortcut, then pressing the key starts all of their actions.
|